header {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 6px 5px 4px 3px;
  box-sizing: border-box;
  background-color: #f3f3f3;
}
header .search {
  display: flex;
  flex: 1;
}
header .search .logo {
  width: 40px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
header .search .logo i[class^='fa'] {
  font-size: 25px;
  color: #f39c12;
}
header .search .searchbox {
  display: flex;
  flex: 1;
  border: solid 1px #ddd;
  font-size: 17px;
  color: #aaa;
  align-items: center;
}
header .search .searchbox > div.icon {
  width: 30px;
  padding-left: 10px;
  display: flex;
  align-items: center;
}
header .search .user {
  width: 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 15px;
}
header .search .user i[class^='fa'] {
  font-size: 20px;
  color: #aaa;
}
header .menu {
  position: relative;
  padding: 10px;
  border-top: 15px;
}
header .menu #toggle:checked + label {
  transform: rotateZ(180deg);
}
header .menu #toggle:checked ~ .category {
  display: block;
}
header .menu #toggle:checked ~ nav {
  display: none;
}
header .menu label[for='toggle'] {
  transition: 1s;
  position: absolute;
  top: 12px;
  right: 0;
  color: #999;
}
header .menu label[for='toggle'] i {
  font-size: 15px;
}
header .menu .category {
  color: #aaa;
  background-color: #f3f3f3;
  display: none;
}
header .menu .category h2 {
  font-size: 16px;
  margin-bottom: 10px;
}
header .menu .category ul {
  display: flex;
  flex-wrap: wrap;
}
header .menu .category ul li {
  width: 25%;
  padding-right: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
}
header .menu .category ul li:nth-child(4n) {
  padding-right: 0;
}
header .menu .category ul li a {
  text-decoration: none;
  color: #aaa;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 1px #ddd;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 14px;
  color: #999;
}
header .menu nav {
  display: flex;
  align-items: center;
  position: relative;
}
header .menu nav > div {
  flex: 1;
  display: flex;
}
header .menu nav > div a {
  margin-right: 20px;
  text-decoration: none;
  color: #aaa;
}
header .menu nav > div a.active {
  color: #f39c12;
  position: relative;
}
header .menu nav > div a.active::after {
  content: ' ';
  display: block;
  height: 2px;
  width: 30px;
  background: #f39c12;
  position: absolute;
}
